package com.kupurui.asteacher.http;

import com.android.frame.http.HttpListener;
import com.android.frame.http.HttpUtils;
import com.android.frame.http.RequestParams;
import com.kupurui.asteacher.config.AppConfig;

/**
 * Created by Administrator on 2017/8/30.
 */

public class Banben {

    private String module = this.getClass().getSimpleName();

    /**
     * 版本更新
     * @param version
     * @param listener
     * @param what
     */
    public void index(String version, HttpListener listener,int what){
        RequestParams params = new RequestParams();
        params.addParam("version",version);
        params.addParam("type","2");
        new HttpUtils().doCall(AppConfig.BASE_URL+"banben/index",params,listener,what);
    }

    /**
     * 服务协议
     * @param listener
     * @param what
     */
    public void service(HttpListener listener,int what){
        RequestParams params = new RequestParams();
        new HttpUtils().doCall(AppConfig.BASE_URL+"student/service",params,listener,what);
    }

}
